package com.elasticjob.listener;

import com.dangdang.ddframe.job.executor.ShardingContexts;
import com.dangdang.ddframe.job.lite.api.listener.ElasticJobListener;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: TongRui乀
 * @Date: 2019-12-12 10:16
 * @description：
 */
@Slf4j
public class MySimpleJobListener implements ElasticJobListener {
    @Override
    public void beforeJobExecuted(ShardingContexts shardingContexts) {
        log.info("检测到任务开始");
    }

    @Override
    public void afterJobExecuted(ShardingContexts shardingContexts) {
        log.info("检测到任务执行完毕 --------------------------------->");
    }
}
